var QRCode = require('../../utils/qrcode.js')
var app = getApp()
const W = wx.getSystemInfoSync().windowWidth;
const qrcode_w = W/2;

Page({
  data: {
    qrcode_w: qrcode_w,
  },
  onReady() {
      new QRCode('canvas', {
        text: app.globalData.sessionid,
        width: qrcode_w,
        height: qrcode_w,
        colorDark: "#000",
        colorLight: "#fff",
        correctLevel: QRCode.CorrectLevel.H,
      });
  }
})